home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / Development Tools & Languages / Macintosh Common Lisp Related / interfaces / PInterface Translator / PInterfaces / DeskBus.p < prev    next >
Encoding:
Text File  |  1993-09-16  |  1.7 KB  |  72 lines  |  [TEXT/MPS ]

  1. {
  2. Created: Sunday, January 6, 1991 at 10:28 PM
  3.     DeskBus.p
  4.     Pascal Interface to the Macintosh Libraries
  5.  
  6.         Copyright Apple Computer, Inc.    1987 -1990
  7.         All rights reserved
  8. }
  9.  
  10.  
  11. {$IFC UNDEFINED UsingIncludes}
  12. {$SETC UsingIncludes := 0}
  13. {$ENDC}
  14.  
  15. {$IFC NOT UsingIncludes}
  16.     UNIT DeskBus;
  17.     INTERFACE
  18. {$ENDC}
  19.  
  20. {$IFC UNDEFINED UsingDeskBus}
  21. {$SETC UsingDeskBus := 1}
  22.  
  23. {$I+}
  24. {$SETC DeskBusIncludes := UsingIncludes}
  25. {$SETC UsingIncludes := 1}
  26. {$IFC UNDEFINED UsingTypes}
  27. {$I $$Shell(PInterfaces)Types.p}
  28. {$ENDC}
  29. {$SETC UsingIncludes := DeskBusIncludes}
  30.  
  31. TYPE
  32. ADBOpBPtr = ^ADBOpBlock;
  33. ADBOpBlock = RECORD
  34.     dataBuffPtr: Ptr;           {address of data buffer}
  35.     opServiceRtPtr: Ptr;        {service routine pointer}
  36.     opDataAreaPtr: Ptr;         {optional data area address}
  37.     END;
  38.  
  39. ADBDBlkPtr = ^ADBDataBlock;
  40. ADBDataBlock = PACKED RECORD
  41.     devType: SignedByte;        {device type}
  42.     origADBAddr: SignedByte;    {original ADB Address}
  43.     dbServiceRtPtr: Ptr;        {service routine pointer}
  44.     dbDataAreaAddr: Ptr;        {data area address}
  45.     END;
  46.  
  47. ADBSInfoPtr = ^ADBSetInfoBlock;
  48. ADBSetInfoBlock = RECORD
  49.     siServiceRtPtr: Ptr;        {service routine pointer}
  50.     siDataAreaAddr: Ptr;        {data area address}
  51.     END;
  52.  
  53. ADBAddress = SignedByte;
  54.  
  55.  
  56. PROCEDURE ADBReInit;
  57.     INLINE $A07B;
  58. FUNCTION ADBOp(data: Ptr;compRout: ProcPtr;buffer: Ptr;commandNum: INTEGER): OSErr;
  59. FUNCTION CountADBs: INTEGER;
  60.     INLINE $A077,$3E80;
  61. FUNCTION GetIndADB(VAR info: ADBDataBlock;devTableIndex: INTEGER): ADBAddress;
  62. FUNCTION GetADBInfo(VAR info: ADBDataBlock;adbAddr: ADBAddress): OSErr;
  63. FUNCTION SetADBInfo(VAR info: ADBSetInfoBlock;adbAddr: ADBAddress): OSErr;
  64.  
  65.  
  66. {$ENDC}    { UsingDeskBus }
  67.  
  68. {$IFC NOT UsingIncludes}
  69.     END.
  70. {$ENDC}
  71.  
  72.